package com.espirit.eap.sa;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;

import com.espirit.eap.annotation.DomainModel;
import com.espirit.eap.annotation.ModelDisplayProperty;
import com.espirit.eap.manager.Department;
import com.espirit.eap.relationship.Party;

@Entity
@DomainModel
@ModelDisplayProperty("name")
public class Employee extends Party implements Serializable{
	private static final long serialVersionUID = 6807029881373946573L;
	
	private Integer position; //dictionary : position
	
	private Department department;
	
	public String getTel() {
		return tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getFax() {
		return fax;
	}

	public void setFax(String fax) {
		this.fax = fax;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	@ManyToOne
	public Department getDepartment() {
		return department;
	}

	public void setDepartment(Department department) {
		this.department = department;
	}

	public Integer getPosition() {
		return position;
	}

	public void setPosition(Integer position) {
		this.position = position;
	}
	
	public Integer getFixedSalary() {
		return fixedSalary;
	}

	public void setFixedSalary(Integer fixedSalary) {
		this.fixedSalary = fixedSalary;
	}

	public Integer getMeritSalary() {
		return meritSalary;
	}

	public void setMeritSalary(Integer meritSalary) {
		this.meritSalary = meritSalary;
	}

	private String tel;
	private String email;
	private String fax;
	private String mobile;
	private Integer fixedSalary;
	private Integer meritSalary;

}
